page {
  background: #f7f8fa;
}

.test-ocr-container {
  padding: 24rpx;
  box-sizing: border-box;
}

.header .title {
  font-size: 34rpx;
  font-weight: 600;
  color: #111;
}

.header .subtitle {
  margin-top: 8rpx;
  font-size: 26rpx;
  color: #666;
}

.action-row {
  display: flex;
  gap: 16rpx;
  margin: 20rpx 0 12rpx;
}

.action-btn {
  flex: 1;
  height: 80rpx;
  line-height: 80rpx;
  border-radius: 12rpx;
  background: #eef0f3;
  color: #333;
}

.action-btn.primary {
  background: #07c160;
  color: #fff;
}

.image-card {
  margin-top: 12rpx;
  background: #fff;
  border-radius: 16rpx;
  overflow: hidden;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06);
}

.preview {
  width: 100%;
  height: 420rpx;
  background: #fafafa;
}

.image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 20rpx;
}

.meta-text {
  color: #666;
  font-size: 24rpx;
}

.mini-btn {
  background: #f0f0f0;
}

.status {
  margin: 20rpx 0;
  color: #888;
  text-align: center;
}

.error-tip {
  margin: 12rpx 0;
  color: #e5352a;
}

.result-card,
.summary-card,
.advice-card {
  margin-top: 16rpx;
  background: #fff;
  border-radius: 16rpx;
  padding: 16rpx;
  box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06);
}

.section-title {
  font-size: 28rpx;
  font-weight: 600;
  color: #222;
  margin-bottom: 12rpx;
}

.item {
  display: flex;
  justify-content: space-between;
  padding: 16rpx 0;
  border-bottom: 1rpx solid #f0f0f0;
}

.item:last-child { border-bottom: none; }

.name { font-size: 28rpx; color: #111; }
.portion { font-size: 24rpx; color: #888; margin-top: 6rpx; }
.kcal { font-size: 28rpx; color: #d9534f; text-align: right; }
.macro { font-size: 24rpx; color: #666; margin-top: 6rpx; text-align: right; }

.summary-row { display: flex; flex-wrap: wrap; gap: 12rpx; }
.chip {
  padding: 6rpx 12rpx;
  border-radius: 24rpx;
  background: #f5f6f7;
  font-size: 24rpx;
  color: #333;
}
.chip.kcal { background: #ffe9e7; color: #c0392b; }

.advice-list { display: flex; flex-direction: column; gap: 10rpx; }
.advice-item { display: flex; align-items: center; }
.advice-item .dot { width: 10rpx; height: 10rpx; background: #bbb; border-radius: 50%; margin-right: 12rpx; }
.advice-item .text { color: #333; font-size: 26rpx; }
.advice-item.warn .text { color: #c0392b; }
.advice-item.info .text { color: #2c7be5; }
.advice-item.ok .text { color: #2fad68; }

.placeholder { margin-top: 24rpx; text-align: center; color: #999; }

